/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.ProcessMonitor;
import com.sasis.model.WrProcess;
import com.sasis.dao.WrProcessDao;
import com.sasis.service.WrProcessManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class WrProcessManagerImpl extends BaseManager implements WrProcessManager {
    private WrProcessDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setWrProcessDao(WrProcessDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.WrProcessManager#getWrProcesss(com.sasis.model.WrProcess)
     */
    public List getWrProcesss(final WrProcess wrProcess) {
        return dao.getWrProcesss(wrProcess);
    }

    /**
     * @see com.sasis.service.WrProcessManager#getWrProcess(String id)
     */
    public WrProcess getWrProcess(final String id) {
        return dao.getWrProcess(new Integer(id));
    }

    /**
     * @see com.sasis.service.WrProcessManager#saveWrProcess(WrProcess wrProcess)
     */
    public int saveWrProcess(WrProcess wrProcess) {
       return dao.saveWrProcess(wrProcess);
    }

    /**
     * @see com.sasis.service.WrProcessManager#removeWrProcess(String id)
     */
    public void removeWrProcess(WrProcess wrProcess) {
        dao.removeWrProcess( wrProcess);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }

	public List getProcessMonitors(ProcessMonitor processMonitor) {
		// TODO Auto-generated method stub
		return dao.getProcessMonitors(processMonitor);
	}
}
